let qs = require("querystring");
let res1 =qs.parse("https://www.baidu.com/s?wd=e10adc3949ba59abbe56e057f20f883e%E8%A7%A3%E5%AF%86&rsv_spt=1&rsv_iqid=0xb590a67e0001fcf1&issp=1&f=3&rsv_bp=1&rsv_idx=2&ie=utf-8&rqlang=cn&tn=baiduhome_pg&rsv_enter=1&oq=node&inputT=3059&rsv_t=ed7eIim5mtvK%2FOUDMjJxJi8x7%2Fn0STRXNYt8c3aXwsI%2FMO7AdvoOFS6nNHR6jp48Iuo%2F&rsv_pq=f5f0fba700020771&rsv_sug3=6&rsv_sug1=6&rsv_sug7=100&rsv_sug2=1&prefixsug=e10adc%2526lt%253B949ba59abbe56e057f20f88%2526lt%253Be&rsp=0&rsv_sug4=3060")
//console.log(res1);
/*
 { 'https://www.baidu.com/s?wd': 'e10adc3949ba59abbe56e057f20f883e解密',
  rsv_spt: '1',
  rsv_iqid: '0xb590a67e0001fcf1',
  issp: '1',
  f: '3',
  rsv_bp: '1',
  rsv_idx: '2',
  ie: 'utf-8',
  rqlang: 'cn',
  tn: 'baiduhome_pg',
  rsv_enter: '1',
  oq: 'node',
  inputT: '3059',
  rsv_t: 'ed7eIim5mtvK/OUDMjJxJi8x7/n0STRXNYt8c3aXwsI/MO7AdvoOFS6nNHR6jp48Iuo/',
  rsv_pq: 'f5f0fba700020771',
  rsv_sug3: '6',
  rsv_sug1: '6',
  rsv_sug7: '100',
  rsv_sug2: '1',
  prefixsug: 'e10adc%26lt%3B949ba59abbe56e057f20f88%26lt%3Be',
  rsp: '0',
  rsv_sug4: '3060' }
 * */
let url = require("url");
let res2 = url.parse("https://www.baidu.com/s?wd=e10adc3949ba59abbe56e057f20f883e%E8%A7%A3%E5%AF%86&rsv_spt=1&rsv_iqid=0xb590a67e0001fcf1&issp=1&f=3&rsv_bp=1&rsv_idx=2&ie=utf-8&rqlang=cn&tn=baiduhome_pg&rsv_enter=1&oq=node&inputT=3059&rsv_t=ed7eIim5mtvK%2FOUDMjJxJi8x7%2Fn0STRXNYt8c3aXwsI%2FMO7AdvoOFS6nNHR6jp48Iuo%2F&rsv_pq=f5f0fba700020771&rsv_sug3=6&rsv_sug1=6&rsv_sug7=100&rsv_sug2=1&prefixsug=e10adc%2526lt%253B949ba59abbe56e057f20f88%2526lt%253Be&rsp=0&rsv_sug4=3060",true)

console.log(res2);
/*
 Url {
  protocol: 'https:',
  slashes: true,
  auth: null,
  host: 'www.baidu.com',
  port: null,
  hostname: 'www.baidu.com',
  hash: null,
  search: '?wd=e10adc3949ba59abbe56e057f20f883e%E8%A7%A3%E5%AF%86&rsv_spt=1&rsv_iqid=0xb590a67e0001fcf1&issp=1&f=3&rsv_bp=1&rsv_idx=2&ie=utf-8&rqlang=cn&tn=baiduhome_pg&rsv_enter=1&oq=node&inputT=3059&rsv_t=ed7eIim5mtvK%2FOUDMjJxJi8x7%2Fn0STRXNYt8c3aXwsI%2FMO7AdvoOFS6nNHR6jp48Iuo%2F&rsv_pq=f5f0fba700020771&rsv_sug3=6&rsv_sug1=6&rsv_sug7=100&rsv_sug2=1&prefixsug=e10adc%2526lt%253B949ba59abbe56e057f20f88%2526lt%253Be&rsp=0&rsv_sug4=3060',
  query:
   { wd: 'e10adc3949ba59abbe56e057f20f883e解密',
     rsv_spt: '1',
     rsv_iqid: '0xb590a67e0001fcf1',
     issp: '1',
     f: '3',
     rsv_bp: '1',
     rsv_idx: '2',
     ie: 'utf-8',
     rqlang: 'cn',
     tn: 'baiduhome_pg',
     rsv_enter: '1',
     oq: 'node',
     inputT: '3059',
     rsv_t: 'ed7eIim5mtvK/OUDMjJxJi8x7/n0STRXNYt8c3aXwsI/MO7AdvoOFS6nNHR6jp48Iuo/',
     rsv_pq: 'f5f0fba700020771',
     rsv_sug3: '6',
     rsv_sug1: '6',
     rsv_sug7: '100',
     rsv_sug2: '1',
     prefixsug: 'e10adc%26lt%3B949ba59abbe56e057f20f88%26lt%3Be',
     rsp: '0',
     rsv_sug4: '3060' },
  pathname: '/s',
  path: '/s?wd=e10adc3949ba59abbe56e057f20f883e%E8%A7%A3%E5%AF%86&rsv_spt=1&rsv_iqid=0xb590a67e0001fcf1&issp=1&f=3&rsv_bp=1&rsv_idx=2&ie=utf-8&rqlang=cn&tn=baiduhome_pg&rsv_enter=1&oq=node&inputT=3059&rsv_t=ed7eIim5mtvK%2FOUDMjJxJi8x7%2Fn0STRXNYt8c3aXwsI%2FMO7AdvoOFS6nNHR6jp48Iuo%2F&rsv_pq=f5f0fba700020771&rsv_sug3=6&rsv_sug1=6&rsv_sug7=100&rsv_sug2=1&prefixsug=e10adc%2526lt%253B949ba59abbe56e057f20f88%2526lt%253Be&rsp=0&rsv_sug4=3060',
  href: 'https://www.baidu.com/s?wd=e10adc3949ba59abbe56e057f20f883e%E8%A7%A3%E5%AF%86&rsv_spt=1&rsv_iqid=0xb590a67e0001fcf1&issp=1&f=3&rsv_bp=1&rsv_idx=2&ie=utf-8&rqlang=cn&tn=baiduhome_pg&rsv_enter=1&oq=node&inputT=3059&rsv_t=ed7eIim5mtvK%2FOUDMjJxJi8x7%2Fn0STRXNYt8c3aXwsI%2FMO7AdvoOFS6nNHR6jp48Iuo%2F&rsv_pq=f5f0fba700020771&rsv_sug3=6&rsv_sug1=6&rsv_sug7=100&rsv_sug2=1&prefixsug=e10adc%2526lt%253B949ba59abbe56e057f20f88%2526lt%253Be&rsp=0&rsv_sug4=3060' }
 * */
